﻿using System;
using System.Collections.Generic;

namespace WallNaming
{
	public class WallTypeInfoComparer : IComparer<WallTypeInfo>
	{
		public int Compare(WallTypeInfo lhv, WallTypeInfo rhv)
		{
			if (lhv.TheWallKind == rhv.TheWallKind)
			{
				return lhv.FillName.CompareTo(rhv.FillName);
			}
			if (lhv.TheWallKind < rhv.TheWallKind)
			{
				return 1;
			}
			return -1;
		}
	}
}
